﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp1.Project.Info
{
    class ActivityInfo
    {
        public int activityInitiatorID;
        public int activityID;
        public string activityInvitationCode;
        public DateTime activityCheckInStartTime;
        public DateTime activityCheckInEndTime;
        public double activityCheckInLongitude;
        public double activityCheckInLatitude;
        public int activityCheckInRadius;
        public string activityCover;
        public DateTime activityStartTime;
        public DateTime activityEndTime;
        public string activityTheme;
        public string activityContent;
        public List<Participant> activityParticipant;

        public ActivityInfo()
        {

        }

        public ActivityInfo(List<Participant> activityParticipant,int activityID)
        {
             this.activityParticipant=activityParticipant; this.activityID = activityID;
        }


        public ActivityInfo(int activityInitiatorID, string activityTheme, double activityCheckInLongitude, double activityCheckInLatitude,
            string activityInvitationCode, DateTime activityCheckInStartTime, DateTime activityCheckInEndTime, DateTime activityStartTime, DateTime activityEndTime)
        {
            this.activityInitiatorID = activityInitiatorID;this.activityTheme = activityTheme;this.activityCheckInLongitude = activityCheckInLongitude;
            this.activityCheckInLatitude = activityCheckInLatitude;this.activityInvitationCode = activityInvitationCode;this.activityCheckInStartTime=activityCheckInStartTime;
            this.activityCheckInEndTime = activityCheckInEndTime;this.activityStartTime = activityStartTime;this.activityEndTime = activityEndTime;
        }

        public ActivityInfo(int activityID,int activityInitiatorID, string activityTheme, double activityCheckInLongitude, double activityCheckInLatitude,
            string activityInvitationCode, DateTime activityCheckInStartTime, DateTime activityCheckInEndTime, DateTime activityStartTime, DateTime activityEndTime)
        {
            this.activityID = activityID;
            this.activityInitiatorID = activityInitiatorID; this.activityTheme = activityTheme; this.activityCheckInLongitude = activityCheckInLongitude;
            this.activityCheckInLatitude = activityCheckInLatitude; this.activityInvitationCode = activityInvitationCode; this.activityCheckInStartTime = activityCheckInStartTime;
            this.activityCheckInEndTime = activityCheckInEndTime; this.activityStartTime = activityStartTime; this.activityEndTime = activityEndTime;
        }

        public class Participant
        {
            public int userID;
            public bool clockIn;
            public bool administrator;

            public Participant(int userID,bool clockIn, bool administrator)
            {
                this.userID = userID;this.clockIn = clockIn;this.administrator = administrator;
            }
        }
    }
}
